package com.yuge.snake.role;

import com.yuge.snake.common.GameConst;

/**
 * Created by Mrper on 15-11-24.
 */
public class Map {

    public MapBlock[][] map = new MapBlock[GameConst.MAX_Y][];

    public Map(){//初始化地图
        for(int y = 0;y<map.length;y++){
            map[y] = new MapBlock[GameConst.MAX_X];
            for(int x = 0;x<map[y].length;x++){
                map[y][x] = new MapBlock(x,y);
            }
        }
    }

}
